//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;

namespace OpenLS.Spreadsheet.Office2003
{
    class CellMerger
    {
        public void Add(RangeAddress a)
        {
            toMerge.Add(a);
        }
        readonly List<RangeAddress> toMerge = new List<RangeAddress>();
        public void MergeWorksheet(Worksheet ws)
        {
            foreach (RangeAddress address in toMerge)
            {
                ws.MergeRange(CellsRange.Create(ws, address));
            }

        }
    }
}
